<?php 
header('Content-type:text/html;charset=utf-8');
function p ($var){
	echo '<pre style="background:#ccc;border-radius:4px;padding:10px;">';
	print_r($var);
	echo '</pre>';
}
if($_SERVER['REQUEST_METHOD']=='POST'){
	define('IS_POST', true);
}else{
	define('IS_POST', false);
}
function success($msg,$url){
		$str = <<<str
<script>
alert('{$msg}');
location.href='{$url}';
</script>
str;
	echo $str;
}




 ?>